package com.ywb.adapter.classadpter;

/**
 * @Author ywb
 * ClassAdapter
 */

public class VoltageAdapter5V extends Voltage220V implements IVoltage5V {
    @Override
    public int output() {
        int src = super.output();
        if(src == 5){
            return src;
        }
//        兼容处理....
        int dest = src / 44;

//        返回结果
        return dest;
    }
}
